package org.jeecg.modules.nc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: NC组织
 * @Author: qixin-boot
 * @Date:   2021-07-06
 * @Version: V1.0
 */
@Data
@TableName("nc_org")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="nc_org对象", description="NC组织")
public class NcOrg implements Serializable {

	/**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String sid;
	/**组织名称*/
	@Excel(name = "组织名称", width = 15)
    @ApiModelProperty(value = "组织名称")
    private String name;
	/**组织编码*/
	@Excel(name = "组织编码", width = 15)
    @ApiModelProperty(value = "组织编码")
    private String code;
	/**上级组织PK*/
	@Excel(name = "上级组织PK", width = 15)
    @ApiModelProperty(value = "上级组织PK")
    private String pkFatherorg;
	/**所属集团*/
	@Excel(name = "所属集团", width = 15)
    @ApiModelProperty(value = "所属集团")
    private String pkGroup;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**订单提交部门编码*/
	@Excel(name = "订单提交部门编码", width = 15)
    @ApiModelProperty(value = "订单提交部门编码")
    private String deptCode;
	/**同步到IM(0,未同步,1已同步)*/
	@Excel(name = "同步到IM(0,未同步,1已同步)", width = 15)
    @ApiModelProperty(value = "同步到IM(0,未同步,1已同步)")
    private Integer imsync;

    @ApiModelProperty(value = "0,正常,1删除)")
    private String dr;
}
